package JLB_Chapter_07;

class Computer2 {
    void showPicture() {
        System.out.println("鼠标单击。");
    }
}

public class Pad2 extends Computer2 {
    void showPicture() {
        System.out.println("手指点击触摸屏。");
    }

    public static void main(String[] args) {
        Computer2 pc = new Computer2();
        System.out.println("pc打开图片：");
        pc.showPicture();
        Pad2 ipad = new Pad2();
        System.out.println("ipad打开图片：");
        ipad.showPicture();
        Computer2 computerpad = new Pad2();
        System.out.println("computerpad打开图片：");
        computerpad.showPicture();
    }
}
